package com.client.comparator;

import java.util.Comparator;

import com.client.bean.BirdMessage;

public class Price19ComparatorUp implements Comparator<BirdMessage> {

	@Override
	public int compare(BirdMessage object1, BirdMessage object2) {
		double index1 = StringUtil.getIndexValue(object1.clickNum+"");
		double index2 = StringUtil.getIndexValue(object2.clickNum+"");
		if((index1 - index2)==0)
		{
			return 0;
		}
		else if((index1 - index2)>0)
		{
			return 1;
		}
		else
		{
			return -1;	
		}
	}
}

